<meta charset="utf-8">
<div data-ng-controller="ShareManagementController">
		
		<div class="panel panel-default clearfix"  style="text-align: left;">
			<div class="panel-heading" align="left" style="background: #ffffff">
				<h3 class="panel-title">发布帖子</h3>
			</div>
			<div class="panel-body">
				<form action="" enctype="multipart/form-data" method="post" name="shareForm">
            		<div class="form-group clearfix">
                		<label class="col-sm-2 control-label" style="text-align: right;">帖子类型:</label>
               			 <div class="col-sm-8" style="width: 200px;">
               			     <select data-ng-model="shareVo.shareType" name="shareType"
								class="form-control" data-style="btn-primary"
								id="shareType" data-ng-change="changeType()">
									<option value="">--请选择--</option>
									<option value="1">视频</option>
									<option value="2">图片</option>
									<option value="3">笑话</option>
									<option value="4">语音</option>
									<option value="5">链接</option>	
							</select>
                		</div>
            		</div>
            		
            		<div class="form-group clearfix">
                		<label class="col-sm-2 control-label" style="text-align: right;">帖子内容:</label>
               			 <div class="col-sm-8">
               			     <textarea rows="3" cols="50" data-ng-model="shareVo.content" id="content" name ="content"></textarea>
                		</div>
            		</div>
            		
            		<div class="form-group clearfix" style="display: none" id="linkUrl">
                		<label class="col-sm-2 control-label" style="text-align: right;">连接地址:</label>
               			 <div class="col-sm-8">
               			     <input type="text" class="form-control"  data-ng-model="shareVo.linkUrl" id="linkUrl" name="linkUrl"/>
                		</div>
            		</div>
            		
            		<div class="form-group clearfix" style="display: none" id="videoPic">
                		 <label class="col-sm-2 control-label" style="text-align: right;">视频封面:</label>
               			 <div class="col-sm-3" >
               			     	<input type='text' name='textfield1' id='textfield1' class='txt' style="border: 1px solid;color: #919191"/> 
								<input type="file" name="file1" accept="image/gif, image/jpeg" class="file" id="fileField1" required  size="28"  onchange="document.getElementById('textfield1').value=this.value" />
                		</div>
            	    </div>
            		
            		<div class="form-group clearfix" style="display: none" id="fileAttachs">
                		 <label class="col-sm-2 control-label" style="text-align: right;">文件包:</label>
               			 <div class="col-sm-3" >
               			     	<input type='text' name='textfield' id='textfield' class='txt' style="border: 1px solid;color: #919191"/> 
								<input type="file" name="file" class="file" id="fileField" required  size="28"  multiple="multiple" onchange="document.getElementById('textfield').value=this.value" />
                		</div>
            	    </div>
            	    
            	    <div class="form-group clearfix" style="display: none" id="viedoAndVoice">
                		 <label class="col-sm-2 control-label" style="text-align: right;">文件包:</label>
               			 <div class="col-sm-3" >
               			     	<input type='text' name='textfield' id='textfield' class='txt' style="border: 1px solid;color: #919191"/> 
								<input type="file" name="file" class="file" id="fileField" required  size="28"  onchange="document.getElementById('textfield').value=this.value" />
                		</div>
            	    </div>
            	    
            	  </form>
			</div>

			<div class="panel-footer" style="background: #ffffff;">
			
				<div class="confirm_btn" data-ng-click="cancel()" >
					<div style="font-size: 12px; color: #00000; text-align: center; position: relative; left: 3px; top: 25%;cursor: pointer;">取消</div>
				</div>
				
				<div class="confirm_btn1" data-ng-click="saveShare()">
					<div style="font-size: 12px; color: #00000; text-align: center; position: relative; left: 2px; top: 25%;cursor: pointer;">确定</div>
				</div>
			</div>

	</div>
</div>
